import { request } from '@renderer/utils/request'
/**
 * 增加配置信息
 * @returns
 */
export const addServer = (data: {
  host: string
  loginName: string
  password: string
  serverName: string
  serverDesc: string
  // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
}) => {
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  return request<any>({
    url: 'strategy/addServer',
    method: 'POST',
    data
  })
}
